package com.hualushui.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.hualushui.dao.AccountMapper;
import com.hualushui.pojo.Account;
import com.hualushui.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Service(interfaceClass = AccountService.class,version = "1.0.0",timeout = 15000)
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountMapper accountMapper;

    @Override
    public Account queryAccountById(int id) {
        Account account = accountMapper.selectByPrimaryKey(id);
        return account;
    }
}
